package cn.capital.springjpa.service;

import cn.capital.springjpa.dao.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import cn.capital.springjpa.entity.User;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public User findByUserName(String userName) {
        return userRepository.findByUserName(userName);
    }

}
